import { axios } from '@/utils/request'

export function select(parameter) {
  return axios({
    url: '/face/device/selectById/' + parameter.id,
    method: 'get'
  })
}

export function selectPage(parameter) {
  return axios({
    url: '/face/device/selectList/' + parameter.pageNum + "/" + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function del(parameter) {
  return axios({
    url: '/face/device/delete/' + parameter,
    method: 'get'
  })
}

export function save(parameter) {
  return axios({
    url: '/face/device/addOrUpdate',
    method: 'post',
    params: parameter
  })
}

export function updateStatusById(parameter) {
  return axios({
    url: '/face/device/updateStatusById',
    method: 'post',
    params: parameter
  })
}

export function selectByDeviceNo(parameter) {
  return axios({
    url: '/face/device/selectByDeviceNo/'+parameter,
    method: 'get'
  })
}